/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sales.hanserver.socket;

import br.com.sales.hanserver.action.hancadpe.GetDataPersonGridAction;
import br.com.sales.hanserver.action.hancadpe.InactivatePersonAction;
import br.com.sales.hanserver.action.hancadpe.RefreshPersonDataGrid;
import br.com.sales.hanserver.action.hancadpe.insert.InsertPersonAction;
import java.util.List;
import java.util.Map;

/**
 *
 * @author v
 */
public class HanCadPEServer {

    public Map insertPerson(Map fields) {
        return new InsertPersonAction().insertPerson(fields);
    }

    public List<Map> getDateGrid(int page) {
        return new GetDataPersonGridAction().getDataGrid(page);
    }

    public void inactivate(long sequence) {
        new InactivatePersonAction().inactivate(sequence);
    }

    public boolean validateDocument(Map itens) {
        return new GetDataPersonGridAction().validate(itens);
    }
    
    public List<Map> refreshPerson(Map items) {
        return new RefreshPersonDataGrid().getItems(items);
        
    }
}
